{include file="header" /}
<div class="fly-msg" style="margin-bottom: 20px;">支付确认</div>
<div class="layui-row layui-col-space20">
    <div class="layui-col-md12">
        <div class="fly-home fly-panel">
            <form class="layui-form" action="{:url('payment/index/index')}" method="post">
                <div class="layui-form-item">
                    <label class="layui-form-label">费用：</label>
                    <div class="layui-form-mid layui-word-aux"><span style="font-weight:bold;color: red">	{$order_res.money}</span>元</div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">合计：</label>
                    <div class="layui-form-mid layui-word-aux"><span style="font-weight:bold;color: red">	{$order_res.money*$order_res.quantity} </span>元</div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">支付方式：</label>
                    <div class="layui-form-mid layui-word-aux"><span style="">	{$order_res.payment} </span></div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <input type="hidden" name="order_sn" value="{$order_res.trade_sn}">
                        <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>

</div>
{include file="footer" /}
<script>
    //Demo
    layui.use(['form', 'layer', 'jquery'], function(){
        var form = layui.form,
            layer = layui.layer,
            $ = layui.jquery;

        //监听提交
        form.on('submit(formDemo)', function(data){
            console.log(data.field);

            return false;
        });

    });

